package warpper;

public class ParseIntDemo4 {
    public static void main(String[] args) {
        String str="123";
        int a=Integer.parseInt(str);//123.0会报错
        System.out.println(a);
        double d=Double.parseDouble(str);//解析
        System.out.println(d);
    }
}
